#include "pch.h"
#include "VertexArray.h"
#include "Renderer.h"
#include "GLVertexArray.h"
namespace HS {

	std::shared_ptr<VertexArray> VertexArray::Create()
	{
		switch (Render::GetAPI())
		{
			case RendererAPI::API::None:    
				std::cout << "RendererAPI::None is currently not supported!" << std::endl;
				return nullptr;
			case RendererAPI::API::OpenGL:  
				return std::make_shared<GLVertexArray>();
		}
		std::cout << "UnknownAPI!" << std::endl;
		return nullptr;
	}

}